﻿using System;

namespace ChivalryUnity.Mvc
{
    [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)]
    public sealed class MvcBindAttribute : Attribute
    {
        public string MsgKey { get; private set; }
        public Type MediatorType { get; private set; }

        public MvcBindAttribute() { }
        public MvcBindAttribute(string msgKey)
        {
            MsgKey = msgKey;
        }
        public MvcBindAttribute(Type mediatorType)
        {
            MediatorType = mediatorType;
        }
    }
}